package com.yztstudy.clients;

import com.yztstudy.clients.impl.CollectHystrixImpl;
import com.yztstudy.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 收藏品的远程调用接口
 */

@FeignClient(value = "collect-service", fallback = CollectHystrixImpl.class)
public interface CollectFeignClient {

    /**
     * TODO 删除收藏里面的商品
     * @param productId 商品Id
     * @return
     */
    @PostMapping("/collect/removeByProductId")
    public R removeByProductId(@RequestBody Integer productId);
}
